//
//  TitleTextFieldCell.h
//  MoneyIndividual
//
//  Created by Tai Le on 12/30/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import "TitleCell.h"
#import "LineView.h"
#import "InsetTextField.h"
#import "InputToolbar.h"

@protocol TitleTextFieldCellDelegate;
@interface TitleTextFieldCell : TitleCell<UITextFieldDelegate,InputToolbarDelegate>
{
    BOOL _ignoreRaiseDidSelectValue;
}

@property (nonatomic, strong) InsetTextField *textField;
@property (nonatomic, strong) InputToolbar *toolbar;
@property (nonatomic, strong) NSString *key;
@property (nonatomic, strong) id selectedValue;
@property (nonatomic, weak) id<TitleTextFieldCellDelegate> delegate;
@property (nonatomic, assign) TextFieldInputMode textFieldMode;//default is TextFieldInputModeKeyboad

- (void)initializeToolbar;
- (void)loadData:(NSManagedObject*)managedObject;

@end

@protocol TitleTextFieldCellDelegate <NSObject>

@optional
- (void)textFieldCellDidSelectValue:(TitleTextFieldCell*)cell;
- (void)textFieldCellDidBeginEditting:(TitleTextFieldCell*)cell;
- (void)textFieldCellDidEndEditting:(TitleTextFieldCell*)cell;

@end